package org.wyy.service;

import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.wyy.api.ApiOrderService;
import org.wyy.dto.OrderDto;
import org.wyy.entity.TccOrder;
import org.wyy.mapper.TccOrderMapper;

/**
 * @author wangyuanye
 * @date 2024/7/22
 **/
@Service
@DubboService
public class OrderServiceImpl implements ApiOrderService {
    @Autowired
    TccOrderMapper mapper;

    @Override
    public void createOrder(OrderDto orderDto) {
        mapper.insert(TccOrder.dto2Entity(orderDto));
    }
}
